const std = @import("std");

pub fn main() !void {
    var gpa = std.heap.GeneralPurposeAllocator(.{}){};
    defer _ = gpa.deinit();
    const allocator = gpa.allocator();
    
    // 尝试不同的初始化方式
    
    // 方式 1: 直接初始化
    var list1 = std.ArrayList(i32).init(allocator);
    defer list1.deinit();
    
    try list1.append(1);
    try list1.append(2);
    
    std.debug.print("List1: {any}\n", .{list1.items});
}
